package cn.edu.imut.bean;

import java.time.LocalDateTime;

public class OrderBean {

    private int OrderId;
    private int ProductId;
    private int UserId;
    private String OrderStatue;
    private LocalDateTime OrderTime;
    private Double TotalAmount;
    private int ProsuctQuentity;
    private String Address;
    private LocalDateTime PaymentTime;

    public OrderBean( int ProductId, int UserId, String OrderStatue, LocalDateTime OrderTime,
                      Double TotalAmount, int ProsuctQuentity, String Address, LocalDateTime PaymentTime) {

        this.ProductId = ProductId;
        this.UserId = UserId;
        this.OrderStatue = OrderStatue;
        this.OrderTime = OrderTime;
        this.TotalAmount = TotalAmount;
        this.ProsuctQuentity = ProsuctQuentity;
        this.Address = Address;
        this.PaymentTime = PaymentTime;
    }

    public OrderBean(int OrderId, int ProductId, int UserId, String OrderStatue, LocalDateTime OrderTime, Double TotalAmount,
                     int ProsuctQuentity, String Address, LocalDateTime PaymentTime) {
        this.OrderId = OrderId;
        this.ProductId = ProductId;
        this.UserId = UserId;
        this.OrderStatue = OrderStatue;
        this.OrderTime = OrderTime;
        this.TotalAmount = TotalAmount;
        this.ProsuctQuentity = ProsuctQuentity;
        this.Address = Address;
        this.PaymentTime = PaymentTime;
    }

    public OrderBean() {
    }

    public int getOrder_id() {
        return OrderId;
    }

    public void setOrder_id(int OrderId) {
        this.OrderId = OrderId;
    }

    public int getProductId() {
        return ProductId;
    }

    public void setProductId(int ProductId) {
        this.ProductId = ProductId;
    }

    public int getUserId() {
        return UserId;
    }

    public void setUserId(int UserId) {
        this.UserId = UserId;
    }

    public String getOrderStatue() {
        return OrderStatue;
    }

    public void setOrderStatue(String OrderStatue) {
        this.OrderStatue = OrderStatue;
    }

    public LocalDateTime getOrderTime() {
        return OrderTime;
    }

    public void setOrderTime(LocalDateTime OrderTime) {
        this.OrderTime = OrderTime;
    }

    public Double getTotalAmount() {
        return TotalAmount;
    }

    public void setTotalAmount(Double TotalAmount) {
        this.TotalAmount = TotalAmount;
    }

    public int getProsuctQuentity() {
        return ProsuctQuentity;
    }

    public void setProsuctQuentity(int ProsuctQuentity) {
        this.ProsuctQuentity = ProsuctQuentity;
    }

    public String getAddress() {
        return Address;
    }

    public void setAddress(String Address) {
        this.Address = Address;
    }

    public LocalDateTime getPaymentTime() {
        return PaymentTime;
    }

    public void setPaymentTime(LocalDateTime PaymentTime) {
        this.PaymentTime = PaymentTime;
    }

    @Override
    public String toString() {
        return "OrderBean{" +
                "order_id=" + OrderId +
                ", ProductId=" + ProductId +
                ", UserId=" + UserId +
                ", OrderStatue='" + OrderStatue + '\'' +
                ", OrderTime=" + OrderTime +
                ", TotalAmount=" + TotalAmount +
                ", ProsuctQuentity=" + ProsuctQuentity +
                ", Address='" + Address + '\'' +
                ", PaymentTime=" + PaymentTime +
                '}';
    }
}
